Skip to content

Add wrapt as explicit dependency to observability packages#212

Open
juliomenendez wants to merge 1 commit intomainfrom
fix/add-wrapt-dependency
Open

Add wrapt as explicit dependency to observability packages#212
juliomenendez wants to merge 1 commit intomainfrom
fix/add-wrapt-dependency

Conversation

@juliomenendez
Copy link
Copy Markdown
Contributor

Summary

  • Fix: Users hitting No module named 'wrapt' when initializing the A365 observability SDK
  • observability-core imports wrapt.ObjectProxy and observability-extensions-langchain imports wrapt.wrap_function_wrapper, but neither declared wrapt as a dependency
  • wrapt only arrived transitively via opentelemetry-instrumentation, which observability-core doesn't depend on — so standalone installs of the core package would fail
  • Added wrapt as explicit dependency to both packages and added wrapt >= 1.14 to root constraint-dependencies

Test plan

  • uv lock && uv sync --locked --all-extras --dev succeeds
  • uv run --frozen ruff check . passes
  • All 181 observability tests pass
  • wrapt confirmed as direct dependency in lockfile for both packages

🤖 Generated with Claude Code

observability-core and observability-extensions-langchain both directly
import wrapt (ObjectProxy and wrap_function_wrapper respectively) but
never declared it as a dependency. Users installing observability-core
without an extension package that pulls in opentelemetry-instrumentation
would hit "No module named 'wrapt'" at SDK init time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@juliomenendez juliomenendez requested review from a team as code owners March 28, 2026 03:18
Copilot AI review requested due to automatic review settings March 28, 2026 03:18
@github-actions
Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 013f35c.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures wrapt is declared as an explicit dependency for the observability packages that import it, preventing standalone installs from failing with No module named 'wrapt'.

Changes:

  • Add wrapt to microsoft-agents-a365-observability-core runtime dependencies.
  • Add wrapt to microsoft-agents-a365-observability-extensions-langchain runtime dependencies.
  • Add a centralized minimum version constraint for wrapt (>= 1.14) in the workspace constraint-dependencies.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
pyproject.toml Adds wrapt >= 1.14 to centralized constraint-dependencies used by uv.
libraries/microsoft-agents-a365-observability-extensions-langchain/pyproject.toml Declares wrapt as a direct dependency for the LangChain extension package.
libraries/microsoft-agents-a365-observability-core/pyproject.toml Declares wrapt as a direct dependency for the core observability package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants